* {
	margin: 0;
	padding: 0;
}

ul {
	list-style: none;
}

.loop {
	position: relative;
	margin: 0 auto;
	width: 1200px;
	height: 340px;
}

#wrap {
	position: relative;
	width: 1200px;
	height: 340px;
	border: 1px solid #79e6ef;
	overflow: hidden;
}

#slider {
	width: 300%;
	height: 100%;
	font: 100px/400px Microsoft Yahei;
	text-align: center;
	color: #fff;
	margin-left: 0;
	-webkit-animation: slide1 10s ease-out infinite;
}
#slider li {
	float: left;
	width: 1200px;
	height: 100%;
}

#slider img {
	width: 1200px;
	height: 100%;
	margin-bottom: 100px;
}

/*创建三种动画策略*/
@-webkit-keyframes slide1 {
	0% {
		margin-left: 0;
	}

	23% {
		margin-left: 0;
	}

	33% {
		margin-left: -600px;
	}

	56% {
		margin-left: -600px;
	}

	66% {
		margin-left: -1200px;
	}

	90% {
		margin-left: -1200px;
	}

	100% {
		margin-left: 0;
	}
}

@-webkit-keyframes slide2 {
	0% {
		margin-left: -1200px;
	}

	23% {
		margin-left: -1200px;
	}

	33% {
		margin-left: -1200px;
	}

	56% {
		margin-left: -1200px;
	}

	66% {
		margin-left: 0;
	}

	90% {
		margin-left: 0;
	}

	100% {
		margin-left: -1200px;
	}
}

/*        @-webkit-keyframes slide3 {
          0% { margin-left:-2400px;}
          23% { margin-left:-2400px;}
          33% { margin-left:0;}
          56% { margin-left:0;}
          66% { margin-left:-1200px;}
          90% { margin-left:-1200px;}
          100% {margin-left:-2400px;}
        } */


/*当我们点击对应按钮时显示对应的动画*/
#first:checked~#wrap #slider {
	-webkit-animation-name: slide1;
}

#second:checked~#wrap #slider {
	-webkit-animation-name: slide2;
}

/*       #third:checked ~ #wrap #slider {
          -webkit-animation-name:slide3;
        } */


/*短暂地取消动画名称，模拟重启动画*/
#first:active~#wrap #slider {
	-webkit-animation-name: none;
	margin-left: 0;
}

#second:active~#wrap #slider {
	-webkit-animation-name: none;
	margin-left: -1200px;
}

/* #third:active~#wrap #slider {
	-webkit-animation-name: none;
	margin-left: -1200px;
} */

#opts {
	width: 600px;
	height: 40px;
	margin: auto;
	color: #fff;
	text-align: center;
	font: 16px/30px Microsoft Yahei;
	position: absolute;
	top: 260px;
	left: 550px;
}

#opts label {
	float: left;
	width: 13px;
	height: 13px;
	margin-right: 2px;
	margin-top: 50px;
	background: #6c6c6c;
	cursor: pointer;
	border-radius: 50%;
}

#opts label:hover {
	background: #3cc627;
}

/* 隐藏Input按钮*/
#first,
#second {
	display: none;
}

/* #third */